﻿<?xml version="1.0"?>
<ServiceModelDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<ClientName>DotNetProfessional</ClientName>
	<CopyrightNotice>Copyright 2008 $ClientName$</CopyrightNotice>
	<ModelName>ReferenceSchema</ModelName>
	<RootPath>c:\temp\modeltest\$ModelName$</RootPath>
	<RootNamespace>$ClientName$.$ModelName$</RootNamespace>

	<DomainDefinition>
		<ModelConnectionString>Data Source=.\SQLExpress;Initial Catalog=ReferenceSchema;Integrated Security=true;Connection Timeout=1;</ModelConnectionString>
		<ResolveLooseRelationships>false</ResolveLooseRelationships>
		<DomainNamespace>$Entity.Domain.RootNamespace$.Business.Entities.$Entity.RelativeNamespace$</DomainNamespace>
		<ManyToManyRuleDefinition>
			<ManyToManyRuleDefinition SourceObjectName="CreatedBy"/>
			<ManyToManyRuleDefinition SourceObjectName="ModifiedBy"/>
			<ManyToManyRuleDefinition SourceObjectName="CreatedDate"/>
			<ManyToManyRuleDefinition SourceObjectName="ModifiedDate"/>
			<ManyToManyRuleDefinition SourceObjectName="ConcurrencyID"/>
		</ManyToManyRuleDefinition>
		<BaseEntityClass>
			<ClassName></ClassName>
			<Namespace></Namespace>
			<Attributes>
				<!-- Role Types: None, PrimaryKey, ConcurrencyKey, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, IsValid, IsDirty-->
				<BusinessEntityAttribute Name="CreatedBy" AttributeRole="CreatedBy"/>
				<BusinessEntityAttribute Name="ModifiedBy" AttributeRole="ModifiedBy"/>
				<BusinessEntityAttribute Name="CreatedDate" AttributeRole="CreatedDate"/>
				<BusinessEntityAttribute Name="ModifiedDate" AttributeRole="ModifiedDate"/>
				<BusinessEntityAttribute Name="ConcurrencyID" AttributeRole="ConcurrencyKey"/>
			</Attributes>
		</BaseEntityClass>

		<Entities>
			<EntityDefinition Name="AllDataTypes" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.AllDataTypes" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="BigInt" SourceObjectName="BigInt" Visible="true"/>
					<PropertyDefinition Name="Binary" SourceObjectName="Binary" Visible="true"/>
					<PropertyDefinition Name="Bit" SourceObjectName="Bit" Visible="true"/>
					<PropertyDefinition Name="Char" SourceObjectName="Char" Visible="true"/>
					<PropertyDefinition Name="DateTime" SourceObjectName="DateTime" Visible="true"/>
					<PropertyDefinition Name="Decimal" SourceObjectName="Decimal" Visible="true"/>
					<PropertyDefinition Name="Float" SourceObjectName="Float" Visible="true"/>
					<PropertyDefinition Name="Image" SourceObjectName="Image" Visible="true"/>
					<PropertyDefinition Name="Int" SourceObjectName="Int" Visible="true"/>
					<PropertyDefinition Name="Money" SourceObjectName="Money" Visible="true"/>
					<PropertyDefinition Name="Nchar" SourceObjectName="Nchar" Visible="true"/>
					<PropertyDefinition Name="Ntext" SourceObjectName="Ntext" Visible="true"/>
					<PropertyDefinition Name="Numeric" SourceObjectName="Numeric" Visible="true"/>
					<PropertyDefinition Name="Nvarchar" SourceObjectName="Nvarchar" Visible="true"/>
					<PropertyDefinition Name="NVarcharMax" SourceObjectName="NVarcharMax" Visible="true"/>
					<PropertyDefinition Name="Real" SourceObjectName="Real" Visible="true"/>
					<PropertyDefinition Name="SmallDateTime" SourceObjectName="SmallDateTime" Visible="true"/>
					<PropertyDefinition Name="SmallInt" SourceObjectName="SmallInt" Visible="true"/>
					<PropertyDefinition Name="SmallMoney" SourceObjectName="SmallMoney" Visible="true"/>
					<PropertyDefinition Name="SqlVariant" SourceObjectName="SqlVariant" Visible="true"/>
					<PropertyDefinition Name="Text" SourceObjectName="Text" Visible="true"/>
					<PropertyDefinition Name="Timestamp" SourceObjectName="Timestamp" Visible="true"/>
					<PropertyDefinition Name="TinyInt" SourceObjectName="TinyInt" Visible="true"/>
					<PropertyDefinition Name="UniqueIdentifier" SourceObjectName="UniqueIdentifier" Visible="true"/>
					<PropertyDefinition Name="VarBinary" SourceObjectName="VarBinary" Visible="true"/>
					<PropertyDefinition Name="VarBinaryMax" SourceObjectName="VarBinaryMax" Visible="true"/>
					<PropertyDefinition Name="VarChar" SourceObjectName="VarChar" Visible="true"/>
					<PropertyDefinition Name="VarCharMax" SourceObjectName="VarCharMax" Visible="true"/>
					<PropertyDefinition Name="Xml" SourceObjectName="Xml" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Char" />
				</BusinessKeys>
				<Relationships>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Car" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Car" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="CarID" SourceObjectName="CarID" Visible="true"/>
					<PropertyDefinition Name="Make" SourceObjectName="Make" Visible="true"/>
					<PropertyDefinition Name="Model" SourceObjectName="Model" Visible="true"/>
					<PropertyDefinition Name="OwnerID" SourceObjectName="OwnerID" Visible="true"/>
					<PropertyDefinition Name="PreviousOwnerID" SourceObjectName="PreviousOwnerID" Visible="true"/>
					<PropertyDefinition Name="RegistrationNumber" SourceObjectName="RegistrationNumber" Visible="true"/>
					<PropertyDefinition Name="MinFuelEconomy" SourceObjectName="MinFuelEconomy" Visible="true"/>
					<PropertyDefinition Name="MaxFuelEconomy" SourceObjectName="MaxFuelEconomy" Visible="true"/>
					<PropertyDefinition Name="AverageFuelEconomy" SourceObjectName="AverageFuelEconomy" Visible="true"/>
					<PropertyDefinition Name="DealerName" SourceObjectName="DealerName" Visible="true"/>
					<PropertyDefinition Name="DealerStateID" SourceObjectName="DealerStateID" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Make" />
					<BusinessKeyDefinition SourceObjectName="Model" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="DealerName" RelationshipType="ManyToOne" SourceObjectName="FK_Car_Dealer" Visible="true"/>
					<RelationshipDefinition Name="Owner" RelationshipType="ManyToOne" SourceObjectName="FK_Car_Person" Visible="true"/>
					<RelationshipDefinition Name="PreviousOwner" RelationshipType="ManyToOne" SourceObjectName="FK_Car_Person1" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Country" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Country" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="CountryID" SourceObjectName="CountryID" Visible="true"/>
					<PropertyDefinition Name="CountryName" SourceObjectName="CountryName" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="CountryName" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="Regions" RelationshipType="OneToMany" SourceObjectName="FK_Region_Country" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Course" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Course" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="CourseID" SourceObjectName="CourseID" Visible="true"/>
					<PropertyDefinition Name="UniversityID" SourceObjectName="UniversityID" Visible="true"/>
					<PropertyDefinition Name="Name" SourceObjectName="Name" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Name" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="University" RelationshipType="ManyToOne" SourceObjectName="FK_Course_University" Visible="true"/>
					<RelationshipDefinition Name="Students" RelationshipType="ManyToMany" SourceObjectName="FK_StudentCourseLink_Course" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Description" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Descriptions" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="DescriptionID" SourceObjectName="DescriptionID" Visible="true"/>
					<PropertyDefinition Name="Description" SourceObjectName="Description" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Description" />
				</BusinessKeys>
				<Relationships>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Home" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Home" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="HomeID" SourceObjectName="HomeID" Visible="true"/>
					<PropertyDefinition Name="Address" SourceObjectName="Address" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Address" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="people" RelationshipType="OneToMany" SourceObjectName="FK_Person_Home" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="MultipleTableNameRelationshipTest" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.MultipleTableNameRelationshipTest" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="Dummy2" SourceObjectName="Dummy2" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Dummy2" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="EntityTableDummy2s" RelationshipType="OneToMany" SourceObjectName="FK_This_That_TheOther_EntityTable_MultipleTableNameRelationshipTest" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Person" RelativeNamespace="" IsAbstract="true" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Person" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="PersonID" SourceObjectName="PersonID" Visible="true"/>
					<PropertyDefinition Name="ChristianName" SourceObjectName="FirstName" Visible="true"/>
					<PropertyDefinition Name="LastName" SourceObjectName="LastName" Visible="true"/>
					<PropertyDefinition Name="HomeID" SourceObjectName="HomeID" Visible="true"/>
					<PropertyDefinition Name="MotherID" SourceObjectName="MotherID" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="FirstName" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="CarOwners" RelationshipType="OneToMany" SourceObjectName="FK_Car_Person" Visible="true"/>
					<RelationshipDefinition Name="CarPreviousOwners" RelationshipType="OneToMany" SourceObjectName="FK_Car_Person1" Visible="true"/>
					<RelationshipDefinition Name="Home" RelationshipType="ManyToOne" SourceObjectName="FK_Person_Home" Visible="true"/>
					<RelationshipDefinition Name="PersonMothers" RelationshipType="OneToMany" SourceObjectName="FK_Person_Mother1toM" Visible="true"/>
					<RelationshipDefinition Name="Mother" RelationshipType="Recursive" SourceObjectName="FK_Person_Mother" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="PreviousUniversityStudent" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.PreviousStudent" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="PreviousStudentID" SourceObjectName="PreviousStudentID" Visible="true"/>
					<PropertyDefinition Name="GraduationDate" SourceObjectName="GraduationDate" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="PreviousStudentID" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="OneToOne" RelationshipType="OneToOne" SourceObjectName="FK_PreviousStudent_Student" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Region" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Region" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="StateID" SourceObjectName="StateID" Visible="true"/>
					<PropertyDefinition Name="CountryID" SourceObjectName="CountryID" Visible="true"/>
					<PropertyDefinition Name="RegionName" SourceObjectName="RegionName" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="RegionName" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="Country" RelationshipType="ManyToOne" SourceObjectName="FK_Region_Country" Visible="true"/>
					<RelationshipDefinition Name="State" RelationshipType="ManyToOne" SourceObjectName="FK_Region_State" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="SingleTable" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.SingleTable" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="SingleTableID" SourceObjectName="SingleTableID" Visible="true"/>
					<PropertyDefinition Name="Name" SourceObjectName="Name" Visible="true"/>
					<PropertyDefinition Name="CreatedBy" SourceObjectName="CreatedBy" Visible="true"/>
					<PropertyDefinition Name="ModifiedBy" SourceObjectName="ModifiedBy" Visible="true"/>
					<PropertyDefinition Name="CreatedDate" SourceObjectName="CreatedDate" Visible="true"/>
					<PropertyDefinition Name="ModifiedDate" SourceObjectName="ModifiedDate" Visible="true"/>
					<PropertyDefinition Name="ConcurrencyID" SourceObjectName="ConcurrencyID" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="Name" />
				</BusinessKeys>
				<Relationships>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="State" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.State" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="StateID" SourceObjectName="StateID" Visible="true"/>
					<PropertyDefinition Name="State" SourceObjectName="State" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="State" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="Regions" RelationshipType="OneToMany" SourceObjectName="FK_Region_State" Visible="true"/>
					<RelationshipDefinition Name="Dealers" RelationshipType="OneToMany" SourceObjectName="FK_Dealer_State" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Student" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.Student" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="StudentID" SourceObjectName="StudentID" Visible="true"/>
					<PropertyDefinition Name="GPA" SourceObjectName="GPA" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="StudentID" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="OneToOne" RelationshipType="OneToOne" SourceObjectName="FK_Student_Person" Visible="true"/>
					<RelationshipDefinition Name="Courses" RelationshipType="ManyToMany" SourceObjectName="FK_StudentCourseLink_Student" Visible="true"/>
					<RelationshipDefinition Name="Universities" RelationshipType="ManyToMany" SourceObjectName="FK_University_Students_Student" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="That_TheOther_EntityTable" RelativeNamespace="This" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.This_That_TheOther_EntityTable" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="DummyId" SourceObjectName="DummyId" Visible="true"/>
					<PropertyDefinition Name="Dummy2" SourceObjectName="Dummy2" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="DummyId" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="Dummy2" RelationshipType="ManyToOne" SourceObjectName="FK_This_That_TheOther_EntityTable_MultipleTableNameRelationshipTest" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="University" RelativeNamespace="" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="dbo.University" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="UniversityID" SourceObjectName="UniversityID" Visible="true"/>
					<PropertyDefinition Name="UniversityName" SourceObjectName="UniversityName" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="UniversityName" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="Courses" RelationshipType="OneToMany" SourceObjectName="FK_Course_University" Visible="true"/>
					<RelationshipDefinition Name="Students" RelationshipType="ManyToMany" SourceObjectName="FK_University_Students_University" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="Dealer" RelativeNamespace="test" IsAbstract="false" IsUpdatable="true" EntityType="Entity" SourceObjectName="test.Dealer" SourceObjectType="Table" Visible="true">
				<Properties>
					<PropertyDefinition Name="DealerName" SourceObjectName="DealerName" Visible="true"/>
					<PropertyDefinition Name="StateID" SourceObjectName="StateID" Visible="true"/>
					<PropertyDefinition Name="Contact" SourceObjectName="Contact" Visible="true"/>
				</Properties>
				<BusinessKeys>
					<BusinessKeyDefinition SourceObjectName="DealerName" />
				</BusinessKeys>
				<Relationships>
					<RelationshipDefinition Name="CarDealerNames" RelationshipType="OneToMany" SourceObjectName="FK_Car_Dealer" Visible="true"/>
					<RelationshipDefinition Name="State" RelationshipType="ManyToOne" SourceObjectName="FK_Dealer_State" Visible="true"/>
				</Relationships>
			</EntityDefinition>
			<EntityDefinition Name="v_AllDataTypes" RelativeNamespace="" SourceObjectName="dbo.v_AllDataTypes" IsAbstract="false" IsUpdatable="false" EntityType="Entity" SourceObjectType="View" Visible="true">
				<Properties>
					<PropertyDefinition Name="BigInt" SourceObjectName="BigInt" Visible="true"/>
					<PropertyDefinition Name="Binary" SourceObjectName="Binary" Visible="true"/>
					<PropertyDefinition Name="Bit" SourceObjectName="Bit" Visible="true"/>
					<PropertyDefinition Name="Char" SourceObjectName="Char" Visible="true"/>
					<PropertyDefinition Name="DateTime" SourceObjectName="DateTime" Visible="true"/>
					<PropertyDefinition Name="Decimal" SourceObjectName="Decimal" Visible="true"/>
					<PropertyDefinition Name="Float" SourceObjectName="Float" Visible="true"/>
					<PropertyDefinition Name="Image" SourceObjectName="Image" Visible="true"/>
					<PropertyDefinition Name="Int" SourceObjectName="Int" Visible="true"/>
					<PropertyDefinition Name="Money" SourceObjectName="Money" Visible="true"/>
					<PropertyDefinition Name="Nchar" SourceObjectName="Nchar" Visible="true"/>
					<PropertyDefinition Name="Ntext" SourceObjectName="Ntext" Visible="true"/>
					<PropertyDefinition Name="Numeric" SourceObjectName="Numeric" Visible="true"/>
					<PropertyDefinition Name="Nvarchar" SourceObjectName="Nvarchar" Visible="true"/>
					<PropertyDefinition Name="NVarcharMax" SourceObjectName="NVarcharMax" Visible="true"/>
					<PropertyDefinition Name="Real" SourceObjectName="Real" Visible="true"/>
					<PropertyDefinition Name="SmallDateTime" SourceObjectName="SmallDateTime" Visible="true"/>
					<PropertyDefinition Name="SmallInt" SourceObjectName="SmallInt" Visible="true"/>
					<PropertyDefinition Name="SmallMoney" SourceObjectName="SmallMoney" Visible="true"/>
					<PropertyDefinition Name="SqlVariant" SourceObjectName="SqlVariant" Visible="true"/>
					<PropertyDefinition Name="Text" SourceObjectName="Text" Visible="true"/>
					<PropertyDefinition Name="Timestamp" SourceObjectName="Timestamp" Visible="true"/>
					<PropertyDefinition Name="TinyInt" SourceObjectName="TinyInt" Visible="true"/>
					<PropertyDefinition Name="UniqueIdentifier" SourceObjectName="UniqueIdentifier" Visible="true"/>
					<PropertyDefinition Name="VarBinary" SourceObjectName="VarBinary" Visible="true"/>
					<PropertyDefinition Name="VarBinaryMax" SourceObjectName="VarBinaryMax" Visible="true"/>
					<PropertyDefinition Name="VarChar" SourceObjectName="VarChar" Visible="true"/>
					<PropertyDefinition Name="VarCharMax" SourceObjectName="VarCharMax" Visible="true"/>
					<PropertyDefinition Name="Xml" SourceObjectName="Xml" Visible="true"/>
				</Properties>
			</EntityDefinition>
			<EntityDefinition Name="v_Course" RelativeNamespace="" SourceObjectName="dbo.v_Course" IsAbstract="false" IsUpdatable="false" EntityType="Entity" SourceObjectType="View" Visible="true">
				<Properties>
					<PropertyDefinition Name="CourseID" SourceObjectName="CourseID" Visible="true"/>
					<PropertyDefinition Name="Name" SourceObjectName="Name" Visible="true"/>
				</Properties>
			</EntityDefinition>
			<EntityDefinition Name="v_CourseStudentCount" RelativeNamespace="" SourceObjectName="dbo.v_CourseStudentCount" IsAbstract="false" IsUpdatable="false" EntityType="Entity" SourceObjectType="View" Visible="true">
				<Properties>
					<PropertyDefinition Name="Name" SourceObjectName="Name" Visible="true"/>
					<PropertyDefinition Name="NoStudents" SourceObjectName="NoStudents" Visible="true"/>
				</Properties>
			</EntityDefinition>
			<EntityDefinition Name="CourseStudent" RelativeNamespace="" SourceObjectName="dbo.v_CourseStudents" IsAbstract="false" IsUpdatable="false" EntityType="Entity" SourceObjectType="View" Visible="true">
				<Properties>
					<PropertyDefinition Name="CourseID" SourceObjectName="CourseID" Visible="true"/>
					<PropertyDefinition Name="Name" SourceObjectName="Name" Visible="true"/>
					<PropertyDefinition Name="FirstName" SourceObjectName="FirstName" Visible="true"/>
					<PropertyDefinition Name="LastName" SourceObjectName="LastName" Visible="true"/>
				</Properties>
			</EntityDefinition>
		</Entities>
	</DomainDefinition>
	<BusinessLayerDefinition>
		<RelativeDomainLayerNamespace>Business.Entities</RelativeDomainLayerNamespace>
		<RelativeServiceLayerNamespace>Business.Services</RelativeServiceLayerNamespace>
		<Features>
			<SupportWCF>true</SupportWCF>
			<TargetCLRVersion>3.0</TargetCLRVersion>
			<TargetDatabase>SQL2005</TargetDatabase>
		</Features>
		<MetaData>
			<Entity>
				<Filename>$Domain.Model.RootPath$\$Domain.Model.BusinessLayer.RelativeDomainLayerNamespace$\$RelativeNamespace#Replace('.','\')$\$Name$</Filename>
				<GeneratedFilename>$Domain.Model.RootPath$\$Domain.Model.BusinessLayer.RelativeDomainLayerNamespace$\Generated\$RelativeNamespace#Replace('.','\')$\$Name$</GeneratedFilename>
			</Entity>
			<Service>
				<Filename>$Model.RootPath$\$Model.BusinessLayer.RelativeServiceLayerNamespace$\$RelativeNamespace#Replace('.','\')$\$Name$</Filename>
				<GeneratedFilename>$Model.RootPath$\$Model.BusinessLayer.RelativeServiceLayerNamespace$\Generated\$RelativeNamespace#Replace('.','\')$\$Name$</GeneratedFilename>
				<InterfaceName>I$Name$</InterfaceName>
				<InterfaceFilename>$Model.RootPath$\$Model.BusinessLayer.RelativeServiceLayerNamespace$.Interfaces\$RelativeNamespace#Replace('.','\')$\I$Name$</InterfaceFilename>
				<InterfaceGeneratedFilename>$Model.RootPath$\$Model.BusinessLayer.RelativeServiceLayerNamespace$.Interfaces\Generated\$RelativeNamespace#Replace('.','\')$\I$Name$</InterfaceGeneratedFilename>
				<InterfaceRelativeNamespace>Business.Services.Interfaces.$RelativeNamespace$</InterfaceRelativeNamespace>
			</Service>
			<ServiceDomain>
				<Filename>$RootPath$\$BusinessLayer.RelativeServiceLayerNamespace$</Filename>
				<GeneratedFilename>$RootPath$\$BusinessLayer.RelativeServiceLayerNamespace$\Generated</GeneratedFilename>
			</ServiceDomain>
			<ServiceMethods>
				<!-- ServiceMethodTypes: Unknown, Exists, RetrieveSingle, RetrieveMultiple, RetrieveManyToMany, RetrieveHierarchy, StoreSingle, StoreMultiple, StoreManyToMany, DeleteSingle, DeleteMultiple -->
				<ServiceMethodMetaDataDefinition ServiceFeature="Exists">
					<FunctionName></FunctionName>
					<StoredProcedureName>gsp_$Name$Exists</StoredProcedureName>
					<MethodName>$Entity.Name$Exists</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="RetrieveSingle">
					<FunctionName>gfn_Retrieve$Name$</FunctionName>
					<StoredProcedureName>gsp_Retrieve$Name$</StoredProcedureName>
					<MethodName>Retrieve$Entity.Name$</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="RetrieveRelationship">
					<FunctionName>gfn_Retrieve$Parent.Name$$Name$</FunctionName>
					<StoredProcedureName>gsp_Retrieve$Parent.Name$$Name$</StoredProcedureName>
					<MethodName>Retrieve$Parent.Name$$Name$</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="RetrieveMultiple">
					<FunctionName>gfn_$Name$Search</FunctionName>
					<StoredProcedureName>gsp_$Name$Search</StoredProcedureName>
					<MethodName>$Entity.Name$Search</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="RetrieveManyToMany">
					<FunctionName>gfn_Retrieve$Parent.Name$$Name$</FunctionName>
					<StoredProcedureName>gsp_Retrieve$Name$</StoredProcedureName>
					<MethodName>Retrieve$Name$</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="RetrieveHierarchy">
					<FunctionName>gfn_Retrieve$Name$</FunctionName>
					<StoredProcedureName>gsp_Retrieve$Name$</StoredProcedureName>
					<MethodName>Retrieve$Entity.Name$</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="StoreSingle">
					<FunctionName></FunctionName>
					<StoredProcedureName>gsp_$Name$Store</StoredProcedureName>
					<MethodName>$Entity.Name$Store</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="StoreMultiple">
					<FunctionName></FunctionName>
					<StoredProcedureName>gsp_$Name$sStore</StoredProcedureName>
					<MethodName>$Entity.Name$sStore</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="StoreManyToMany">
					<FunctionName></FunctionName>
					<StoredProcedureName>gsp_$Parent.Name$$RelatedEntity.Name$Store</StoredProcedureName>
					<MethodName>$Parent.Name$$RelatedEntity.Name$Store</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="StoreManyToManyMultiple">
					<FunctionName></FunctionName>
					<StoredProcedureName>gsp_$Parent.Name$$Name$Store</StoredProcedureName>
					<MethodName>$Parent.Name$$Name$Store</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="DeleteSingle">
					<FunctionName></FunctionName>
					<StoredProcedureName>gsp_$Name$Delete</StoredProcedureName>
					<MethodName>$Entity.Name$Delete</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
				<ServiceMethodMetaDataDefinition ServiceFeature="DeleteMultiple">
					<FunctionName>gfn_$Name$Delete</FunctionName>
					<StoredProcedureName>gsp_$Name$sDelete</StoredProcedureName>
					<MethodName>$Entity.Name$sDelete</MethodName>
					<Role></Role>
				</ServiceMethodMetaDataDefinition>
			</ServiceMethods>
		</MetaData>
		<BusinessServiceDefinitions>
			<BusinessServiceDefinition Name="AllDataTypesService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.AllDataTypes" IncludeHardDelete="false" IncludeRelatedEntities="false" IncludeRetrieveSingle="false" IncludeRetrieveRelationship="false" IncludeExists="false" IncludeRetrieveMultiple="false" IncludeSoftDelete="false" IncludeStore="false" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="CarService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Car" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="CountryService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Country" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="CourseService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Course" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="DescriptionService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Descriptions" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="HomeService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Home" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="MultipleTableNameRelationshipTestService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.MultipleTableNameRelationshipTest" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="PersonService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Person" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="PreviousUniversityStudentService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.PreviousStudent" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="RegionService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Region" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="SingleTableService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.SingleTable" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="StateService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.State" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="StudentService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.Student" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="That_TheOther_EntityTableService" RelativeNamespace="This">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.This_That_TheOther_EntityTable" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="UniversityService" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.University" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="DealerService" RelativeNamespace="test">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="test.Dealer" IncludeHardDelete="false" IncludeRelatedEntities="true" IncludeRetrieveSingle="true" IncludeRetrieveRelationship="true" IncludeExists="true" IncludeRetrieveMultiple="true" IncludeSoftDelete="false" IncludeStore="true" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
			<BusinessServiceDefinition Name="NeedsSorting" RelativeNamespace="">
				<ExposedEntities>
					<ExposedEntityDefinition SourceObjectName="dbo.v_AllDataTypes" IncludeHardDelete="false" IncludeRelatedEntities="false" IncludeRetrieveSingle="false" IncludeRetrieveRelationship="false" IncludeRetrieveMultiple="false" IncludeSoftDelete="false" IncludeStore="false" />
					<ExposedEntityDefinition SourceObjectName="dbo.v_Course" IncludeHardDelete="false" IncludeRelatedEntities="false" IncludeRetrieveSingle="false" IncludeRetrieveRelationship="false" IncludeRetrieveMultiple="false" IncludeSoftDelete="false" IncludeStore="false" />
					<ExposedEntityDefinition SourceObjectName="dbo.v_CourseStudentCount" IncludeHardDelete="false" IncludeRelatedEntities="false" IncludeRetrieveSingle="false" IncludeRetrieveRelationship="false" IncludeRetrieveMultiple="false" IncludeSoftDelete="false" IncludeStore="false" />
					<ExposedEntityDefinition SourceObjectName="dbo.v_CourseStudents" IncludeHardDelete="false" IncludeRelatedEntities="false" IncludeRetrieveSingle="false" IncludeRetrieveRelationship="false" IncludeRetrieveMultiple="false" IncludeSoftDelete="false" IncludeStore="false" />
				</ExposedEntities>
				<ServiceMethods />
			</BusinessServiceDefinition>
		</BusinessServiceDefinitions>
	</BusinessLayerDefinition>
</ServiceModelDefinition>

